package org.example;


import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * Hello world!
 *
 */
public class App 
{
    public static void main( String[] args )
    {
        System.out.println( "Hello World!" );
        UserDao dd = new UserDao();
        dd.findUser();

        ApplicationContext applicationContext = new ClassPathXmlApplicationContext("spring.xml");
        UserDao dd1 = (UserDao) applicationContext.getBean("userDao");
        UserService userService = (UserService) applicationContext.getBean("userService");
    }
}
